package com.qf.controller;
import com.qf.entity.R;
import com.qf.entity.Subscribe;
import com.qf.service.SubscribeService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * 预约婚纱表(Subscribe)表控制层
 *
 * @author makejava
 * @since 2023-04-08 10:11:37
 */
@RestController
@RequestMapping("subscribe")
//@Log4j2
public class SubscribeController {
    /**
     * 服务对象
     */
    @Resource
    private SubscribeService subscribeService;

    /**
     * 婚纱预约接口
     */
    @RequestMapping("/booking")
    public R<Subscribe> booking(Subscribe subscribe){
//        log.debug("[hunsha yuyue]婚纱预约接口 -{}",subscribe);
        System.out.println("婚纱预约接口触发：：：：：：："+subscribe);
        subscribeService.selectYuYue(subscribe);
        return R.succ("恭喜预约成功！！！！！");
    }


}

